// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}
 /* 表格开始 */

 .el-table {
  .has-gutter{
    th {
      position: relative;
      box-sizing: border-box;
      padding: 10px 0;
      background: #f5f7fa;
      .cell {
        font-size: $base-font-size-default;
        font-weight: bold;
        color: #212121;
      }
    }
  }
  .el-table__body-wrapper {
    @include base-scrollbar;
  }

  th {
    background: #f5f7fa;
  }

  td,
  th {
    position: relative;
    box-sizing: border-box;
    padding: 10px 0;
    .cell {
      font-size: $base-font-size-default;
      font-weight: normal;
      color: #666;

      .el-image {
        width: 50px;
        height: 50px;
        border-radius: $base-border-radius;
      }
    }
  }
}

/* 表格结束 */
 /* 弹窗开始 */

 .el-dialog,
 .el-message-box {
   &__body {
     border-top: 1px solid $base-border-color;

     .el-form {
       padding-right: 30px;
     }
   }

   &__footer {
     padding: $base-padding;
     text-align: right;
     border-top: 1px solid $base-border-color;
   }

   &__content {
     padding: 20px 20px 20px 20px;
   }
 }


 /* 弹窗结束 */
 /* switch按钮样式 */
 .switch.el-switch .el-switch__label {
  position: absolute;
  display: none;
  color: #fff !important;
}
/*打开时文字位置设置*/
.switch.el-switch .el-switch__label--right {
  z-index: 1;
}
/* 调整打开时文字的显示位子 */
.switch.el-switch .el-switch__label--right span {
  margin-right: 15px;
}
/*关闭时文字位置设置*/
.switch.el-switch .el-switch__label--left {
  z-index: 1;
}
/* 调整关闭时文字的显示位子 */
.switch.el-switch .el-switch__label--left span {
  margin-left: 13px;
}
/*显示文字*/
.switch.el-switch .el-switch__label.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 调整按钮的宽度 */
.switch.el-switch .el-switch__core,
.switch.el-switch .el-switch__label {
  width: 55px !important;
  height: 22px;
  line-height: 22px;
  border-radius: 22px;
  margin: 0;
}
.switch.el-switch .el-switch__core:after {
  top: 2px;
  left: 2px;
}
.switch.el-switch.is-checked .el-switch__core::after {
  margin-left: -18px;
}



/*以下样式将单选框隐藏，并绝对定位与文字内容一样大小，这样点击时可以点击整行文字*/
.el-cascader-panel .el-radio{
  position:absolute;
  z-index:10;
  padding:0 10px;
  width:132px;
  height:34px;
  line-height:34px;
 }
 .el-cascader-panel .el-radio__input{
  visibility:hidden;
 }
 .el-cascader-panel .el-input-node__postfix{
  top:10px;
 }

// 表格内容居中
.el-table th,
.el-table td {
  text-align: center !important;
}
// 表格中img
.el-image img {
  object-fit: cover;
}

.list-video {
  position: relative;
  cursor: pointer;
}
.list-video video {
  width: 100%;
  height: 100%;
  vertical-align: top;
}
.list-video .play-btn {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
}
.list-video:hover .play-btn {
  display: inline-block;
}
.list-video .play-btn svg:last-child {
  display: none;
}
.list-video.active .play-btn svg:first-child {
  display: none;
}
.list-video.active .play-btn svg:last-child {
  display: inline-block;
}
.el-tooltip__popper{
  max-width: 800px;
  }